package com.video.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (Vlogs)表实体类
 *
 * @author baoshuai
 * @since 2022-12-14 21:02:16
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("vlogs")
public class Vlogs {
    //序号
    @TableId(type = IdType.AUTO)
    private Long id;
    //用户id
    private Long userId;
    //视频地址
    private String url;
    //视频封面图片
    private String cover;
    //视频标题
    private String title;
    //视频内容
    private String content;
    //视频宽
    private Integer width;
    //视频长
    private Integer height;
    //点赞数
    private Integer likeCounts;
    //是否私密：1-仅自己可见 2-所有人可见
    private Integer isPrivate;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @TableLogic
    private int delFlag;
}